import App from './App'

// #ifndef VUE3
import Vue from 'vue';
import './uni.promisify.adaptor';
import divider  from "./compoment/IndexCommen/divider.vue";
import loadmore from "./compoment/IndexCommen/loadmore.vue";
import noThing from "./compoment/IndexCommen/no-thing.vue";
import uView from "uview-ui";
import store from './store/index.js';
Vue.use(uView);
// 全局组件
Vue.component("divider",divider)
Vue.component("loadmore",loadmore)
Vue.component("noThing",noThing)

import $C from 'common/config.js'

Vue.prototype.$store = store
Vue.prototype.$C = $C

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app,
	store
  }
}
// #endif